MenuShell: Avoid compiler warning re un/signed cmp
authorDaniel Boles <dboles.src@gmail.com>
Tue, 17 Apr 2018 19:50:04 +0000 (20:50 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Tue, 17 Apr 2018 19:53:48 +0000 (20:53 +0100)
priv->button is a guint, but we assigned it to a local gint.

gtk/gtkmenushell.c:734:37: warning: comparison between signed and
  unsigned integer expressions [-Wsign-compare]
           if (button && (new_button != button) && priv->parent_menu_shell)
                                     ^

gtk/gtkmenushell.c

index 494aff5402d8819dc70545aae24fb0836f9096f6..69f1568d97d58a6cd1e572ae053388c374ff4d9d 100644 (file)
@@ -727,7 +727,7 @@ gtk_menu_shell_event (GtkWidget *widget,
       if (priv->active)
         {
           GtkWidget *menu_item;
-          gint button = priv->button;
+          guint button = priv->button;
 
           priv->button = 0;